#include"test.h"
#include<iostream>
#include<vector>
#include <algorithm>
using namespace std;
int main()
{
	//lj::test_vector1();
	lj::test_vector2();
	/*vector<int> v1;
	v1.reserve(5);
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
	reverse(v1.rbegin(), v1.rend());
	vector<int> v2(v1);
	for (auto e : v2)
	{
		cout << e << " ";
	}
	cout << endl;
	cout << v2.size() << endl;
	cout << v2.capacity() << endl;*/
	return 0;
}
//#include<iostream>
//#include<vector>
//using namespace std;
//int main()
//{
//	int ar[] = { 1,2,3,4,0,5,6,7,8,9 };
//	int n = sizeof(ar) / sizeof(int);
//	vector<int> v(ar, ar + n);
//	vector<int>::iterator it = v.begin();
//	while (it != v.end())
//	{
//		if (*it != 0)
//			cout << *it;
//		else
//			v.erase(it);
//		it++;
//	}
//	return 0;
//}